# s = 'wedfghjk'
# print('ed1' in s)
# list = ['123', '234', '345']
# print('123' not in list)

# s = 'qwerttasd'
# print(s[-1:])

# s = '123'
# s += '234'
# print(s)

# dict = {}
# dict['a'] = 'aa'
# dict['b'] = 'bb'
# dict['b'] = 'bb2'
# print(dict)

# s = '123456789'
# print('1' in s)
# print(s[-1:])

list = [
    '123', '234', '345', '234', '345', '234', '345', '234', '345', '234',
    '345', '234', '345', '234', '345', '234', '345', '234', '345', '234',
    '345', '234', '345', '234', '345'
]
# print(len(list))
# print(list[0:5])
# print(list[5:10])
# list.append('741')
# print(list)
# print(len(list) // 5)
# # num = (len(list) % 5) == 0 ? '':''
# num = (len(list) // 5) if (len(list) % 5) == 0 else (len(list) // 5) + 1
# print(num)
# for i in range(num):
#     print(list[i * 5:i * 5 + 5])

print("','".join('%s' % v for v in list))
spilt_CUST_CODE = "','".join('%s' % v for v in list)
sql = "update v_tbl_cust_info set TYPE_CODE = '12' where CUST_CODE in ('" + spilt_CUST_CODE + "')"
print(sql)
